<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<s:head theme="ajax" />
		<title>My JSP 'importUser.jsp' starting page</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css" href="../css/singleUpload.css">
		<link rel="stylesheet" type="text/css" href="../css/content.css">
		<link rel="stylesheet" type="text/css" href="../css/teacher.css">
		<script type="text/javascript" src="../js/common.js"></script>
		<script type="text/javascript" src="../js/teacher.js"></script>
	</head>

	<body>
		<div class="containers">
			<form action="import.action" id="importUser" target="upload-target"
				onsubmit="return check('userFiles','import_contant');"
				name="importUser" method="post">
				<div class="single_container">
					<div class="single_title">
						导入用户
					</div>
					<div class="single_body">
						<div class="body_left">
							<div class="left_file">
								<div class="left_file_1">
									选择用户类型:
									<s:select list="#{'0':'学生','1':'老师'}" name="userType"
										theme="simple" id="userType"
										cssStyle="display:block;margin-left:auto;margin-right:auto;"></s:select>
								</div>
								<div>
									<input type="file" name="userFile" id="userFiles" onchange="readFile(this)"/>
								</div>
							</div>
							<div class="left_button">
								<input type="submit" value="导入" />
							</div>
						</div>
						<div class="body_right">
							请注意文件里面每行数据的格式，每张数据以"
							<font class="right_font">/</font>"分开，学生示例点击
							<a href="javascript:void(0)"
								onclick="openShili('../img/shili.jpg')">这里</a> ,老师示例点击
							<a href="javascript:void(0)"
								onclick="openShili('../img/shili2.jpg')">这里</a>
						</div>

					</div>
				</div>
			</form>
		</div>
		<div id="shili" style="display: none;">
			<img title="点击关闭" onclick="closeShili('shili')">
		</div>

		<div id="import_contant" class="container" style="display: none;">
			<div class="c_head">
				<span class="c_head_1">导入用户</span>
				<span class="c_head_2"> <a href="javascript:void(0)"> <IMG
							src="../img/close2.gif"
							onclick="closeImportResult('import_contant')"> </a> </span>
			</div>
			<iframe id="uploadFrame" name="upload-target" height=50px
				" width="100%" src="../admin/adminResult.jsp" frameborder="0"
				scrolling="no"></iframe>
		</div>
		<div id="mask" style="display: none"></div>
	</body>
</html>
